﻿<%-- 
    Copyright (C) Binod Nepal, Planet Earth Solutions Pvt. Ltd., Kathmandu.
	Released under the terms of the GNU General Public License, GPL, 
	as published by the Free Software Foundation, either version 3 
	of the License, or (at your option) any later version.
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
    See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
--%>

<%@ Page Title="Change Your Password" Language="C#" MasterPageFile="~/Classifieds/Main.Master" AutoEventWireup="true"
    CodeBehind="ChangePassword.aspx.cs" Inherits="MixNP.Web.Classifieds.ChangePassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="StyleSheetContentPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ScriptsContentPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="BodyContentPlaceHolder" runat="server">
    <h1>
        Change Password
    </h1>
    <hr class="hr" />
    <input type="button" onclick="location.href='/dashboard.mix';" value="Dashboard" />

<asp:Panel ID="ChangePasswordPanel" runat="server">
    <table style="width: 100%;">
        <tr>
            <td>
                <label id="Label1" runat="server" class="label">
                    Current Password :
                </label>
            </td>
        </tr>
        <tr style="height: 40px;">
            <td>
                <asp:TextBox ID="CurrentPasswordTextBox" runat="server" CssClass="textbox normal-width"
                    TextMode="Password" MaxLength="128" />
                <asp:RequiredFieldValidator ID="CurrentPasswordRequiredFieldValidator" runat="server"
                    ControlToValidate="CurrentPasswordTextBox" Text="*" ErrorMessage="*" EnableClientScript="true"
                    SetFocusOnError="true" CssClass="alert" Display="Dynamic" />
            </td>
        </tr>
        <tr>
            <td>
                <div class="note">
                    Your current password
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <label id="Label2" runat="server" class="label">
                    New Password :
                </label>
            </td>
        </tr>
        <tr style="height: 40px;">
            <td>
                <asp:TextBox ID="PasswordTextBox" runat="server" CssClass="textbox normal-width"
                    TextMode="Password" MaxLength="128" />
                <asp:RequiredFieldValidator ID="PasswordRequiredFieldValidator" runat="server" ControlToValidate="PasswordTextBox"
                    Text="*" ErrorMessage="*" EnableClientScript="true" SetFocusOnError="true" CssClass="alert"
                    Display="Dynamic" />
            </td>
        </tr>
        <tr>
            <td>
                <div class="note">
                    Please type a new password.
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <label id="Label3" runat="server" class="label">
                    Confirm Your New Password :
                </label>
            </td>
        </tr>
        <tr style="height: 40px;">
            <td>
                <asp:TextBox ID="ConfirmPasswordTextBox" ClientIDMode="Static" runat="server" CssClass="textbox normal-width"
                    TextMode="Password" MaxLength="128" />
                <asp:RequiredFieldValidator ID="ConfirmPasswordRequiredFieldValidator" runat="server"
                    ControlToValidate="ConfirmPasswordTextBox" Text="*" ErrorMessage="*" EnableClientScript="true"
                    SetFocusOnError="true" CssClass="alert" Display="Dynamic" />
                <asp:CompareValidator ID="ComparePasswordValidator" runat="server" ControlToValidate="ConfirmPasswordTextBox"
                    ControlToCompare="PasswordTextBox" EnableClientScript="true" ErrorMessage="<br/>This password does not match with the new password you entered."
                    Operator="Equal" CssClass="alert" Display="Dynamic" />
            </td>
        </tr>
        <tr>
            <td>
                <div class="note">
                    Please confirm this password with the password you entered.
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <span class="alert">
                    <asp:Literal ID="ErrorLiteral" runat="server" />
                </span>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="ChangePasswordButton" runat="server" Text="Change Password" OnClick="ChangePasswordButton_Click" />
            </td>
        </tr>
    </table>
</asp:Panel>
<br />
<asp:Literal ID="SuccessLiteral" runat="server" />

</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ScriptsContentPlaceHolderBottom"
    runat="server">
</asp:Content>
